package foo.bar.wiki.security.tags;

import org.apache.shiro.web.tags.PermissionTag;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class HasAllPermissionTag extends PermissionTag {
    
    @Override
    protected boolean showTagBody(String p) {
        String[] permissions = p.split("\\|");
        for (int a=0; a<permissions.length; a++) {
            if (!isPermitted(permissions[a]))
                return false;
        }
        return true;
    }
}
